package com.gopay.bis.dao.bankorder;

import com.gopay.common.base.dao.BaseDAO;
import com.gopay.common.domain.bank.bcdl.BisBankRspCodeFeature;

import java.util.List;

/**
 * 银行返回报文失败特征表查询类
 * Created by zyt on 2017/9/22.
 */
public interface BisBankRspCodeFeatureDao extends BaseDAO<BisBankRspCodeFeature, String> {
    /**
     * 根据几项信息从错误码信息中，查询是否为失败
     * @param bankCode      银行名称代码
     * @param transType     交易类型
     * @param returnCode    报文返回码
     * @param dealResult    订单结果码
     * @return
     */
    BisBankRspCodeFeature findByInfos(String bankCode, String transType, String returnCode, String dealResult);

    /**
     * 查询错误信息表中，所有记录
     * @return
     */
    List<BisBankRspCodeFeature> findAll();
}
